﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Default.master" AutoEventWireup="true" CodeBehind="ChangePassword.aspx.cs" Inherits="Runda.EShop.SaaS.Shared.ChangePassword" %>
<%@ Register Src="~/UserControl/LeftMenu.ascx" TagPrefix="uc" TagName="LeftMenu" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHeader" runat="server">
    <script src="../Content/Business/CheckPassword.js" type="text/javascript"></script>
    <script type="text/javascript">
        function chkOnSave() {
            if ($('#<%=txtOldPwd.ClientID %>').val() == '') {
                alert('请输入原密码!');
                return false;
            }

            if ($('#<%=txtNewPwd.ClientID %>').val() == '') {
                alert('请输入新密码!');
                return false;
            }

            if ($('#<%=txtNewPwdAgain.ClientID %>').val() == '') {
                alert('请输入确认密码!');
                return false;
            }

            if ($('#<%=txtNewPwd.ClientID %>').val() != $('#<%=txtNewPwdAgain.ClientID %>').val()) {
                alert('两次密码输入不一致!');
                return false;
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphLeft" runat="server">
    <uc:LeftMenu runat="server" ID="ucLeftMenu" TopMenuCode="Func01"/>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphMain" runat="server">
  <div class="ImgChangePW">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <th scope="row">原密码：
                </th>
                <td>
                    <asp:TextBox ID="txtOldPwd" runat="server" TextMode="Password"></asp:TextBox> 
                </td>
            </tr>
            <tr>
                <th scope="row">新密码：
                </th>
                <td>
                    <asp:TextBox ID="txtNewPwd" runat="server" onKeyUp="CheckPwd.pwStrength(this.value)"
                        TextMode="Password"></asp:TextBox> 
                </td>
            </tr>
            <tr>
                <th scope="row">&nbsp;</th>
                <td>
                    <table border="0" cellspacing="0" cellpadding="0" style="width:180px; border-color:#cccccc; height:20px">
                        <tr align="center" bgcolor="#eeeeee">
                            <td width="33%" id="strength_L"> 
                            </td>
                            <td width="33%" id="strength_M"> 
                            </td>
                            <td width="33%" id="strength_H"> 
                                <asp:HiddenField ID="hfPwdLevel" runat="server" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <th scope="row">确认密码：
                </th>
                <td>
                    <asp:TextBox ID="txtNewPwdAgain" runat="server" TextMode="Password"></asp:TextBox>                   
                </td>
            </tr>
            <tr>
                <th scope="row">
                    &nbsp;
                </th>
                <td>
                    <div class="banner1 l">
                        <asp:LinkButton ID="btnSave" runat="server" onclick="btnSave_Click" OnClientClick="return chkOnSave();">保存</asp:LinkButton></div>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
